package com.xiaosu.red_travel.util;

import com.xiaosu.red_travel.bean.ResultInfo;

public class DatahandleUtil {

    /**
     * 处理mybatis-plus执行结果
     * @param implement
     * @param b
     * @return
     */
    public static ResultInfo ifData(String implement,Boolean b){
        if(b){
            return ResultInfo.no(implement+"失败");
        }else {
            return ResultInfo.ok(implement+"成功");
        }
    }

}
